package il.ac.braude.sona.ui.forms.myforms;

import il.ac.braude.sona.strings.Resources;
import il.ac.braude.sona.ui.forms.FormFrame;
import il.ac.braude.sona.ui.forms.FormPanel;
import il.ac.braude.ui.forms.questions.QTextField;

import java.awt.Color;

import javax.swing.JLabel;

public class ViewChangeRequestForm extends FormFrame {
	private JLabel errorLabel;

	public ViewChangeRequestForm() {
		super(Resources.Strings.ReqFormTitle, Resources.Strings.OK);
		FormPanel form = new FormPanel();
		form.addQuestion(new QTextField(Resources.Strings.ViewFormRequID));
		errorLabel = new JLabel();
		errorLabel.setVisible(false);
		errorLabel.setForeground(Color.red);
		form.add(errorLabel);
		setForm(form);
	}
	public void showError(String error) {
		errorLabel.setText(error);
		errorLabel.setVisible(true);
	}
	public void showMessege(String connecting) {
		// TODO Auto-generated method stub
		
	}
}
